<template>
  <div>
    子组件
    <div>
      <!-- <button @click="$emit('myclick',100)">按钮</button> -->
      <button @click="$emit('myclick', 200)">qianqian</button>
    </div>
    <p>向父亲索要钱：{{ money }}</p>
  </div>
</template>

<script>
export default {
  components: {},
  props: ['money'],
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    fn() {
      this.$emit("myclick", 100);
    },
  },
};
</script>

<style scoped></style>
